import express from "express";
const router = express.Router();
/* GET users listing. */

import RoleController from "../../controller/role/index";
const roleController = new RoleController();
import RoleValidator from "../../validator/role/index";
const roleValidator = new RoleValidator();

router.get("/getRoleList", roleController.getRoleList);

router.post("/addRole", roleValidator.addRole, roleController.addRole);

router.post("/changeRoleInfo", roleValidator.addRole, roleController.changeRoleInfo);

router.post("/changeRoleStatus", roleController.changeRoleStatus);

router.post("/deleteRole", roleValidator.deleteRole, roleController.deleteRole);

router.post("/saveRoleUser", roleController.saveRoleUser);

router.post("/saveRoleAuth", roleController.saveRoleAuth);

export default router;
